home *** CD-ROM | disk | FTP | other *** search
/ Aminet 8 / Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso / Aminet / dev / gcc / libnixV1_0.lha / gnu / libnix-sources.lha / sources / headers / dirent.h < prev    next >
C/C++ Source or Header  |  1995-01-22  |  588b  |  34 lines

  1. #include <dos/exall.h>
  2. #include <dos/dosextens.h>
  3.  
  4. struct dirent {
  5.   ULONG d_fileno;
  6.   USHORT d_reclen;
  7.   USHORT d_namlen;
  8.   BYTE d_name[256];
  9. };
  10.  
  11. typedef struct _dirdesc {
  12.   int dd_fd;
  13.   struct dirent dd_ent;
  14.   BPTR d_lock;
  15.   ULONG d_count;
  16.   LONG d_more;
  17.   struct ExAllControl *d_eac;
  18.   struct ExAllData *current;
  19.   union {
  20.     char ead[2048];
  21.     struct FileInfoBlock fib;
  22.   } _dirun;
  23. } DIR;
  24.  
  25. #define d_ead _dirun.ead
  26. #define d_info _dirun.fib
  27.  
  28. /* prototypes */
  29.  
  30. DIR *opendir(const char *dirname);
  31. struct dirent *readdir(DIR *dirp);
  32. void rewinddir(DIR *dirp);
  33. int closedir(DIR *dirp);
  34.